package br.com.monise.model;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="ITENS_CARACTERISTICAS")
public class ItemsCaracteristica implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="pk_Item")
	private Long pkItem;
	
	@Column(name="informacao")
	private String informacao;
	
	@Column(name="valor")
	private BigDecimal valor;
	
	@ManyToOne
	@JoinColumn(name="fk_Caracteristica")
	private Caracteristicas caracteristicas;
	
	public String getInformacao() {
		return informacao;
	}
	
	public void setInformacao(String informacao) {
		this.informacao = informacao;
	}

	public Long getIdItem() {
		return pkItem;
	}

	public void setIdItem(Long idItem) {
		this.pkItem = idItem;
	}

	public BigDecimal getValor() {
		return valor;
	}

	public void setValor(BigDecimal valor) {
		this.valor = valor;
	}

	public Caracteristicas getCaracteristicas() {
		return caracteristicas;
	}

	public void setCaracteristicas(Caracteristicas caracteristicas) {
		this.caracteristicas = caracteristicas;
	}

	@Override
	public String toString() {
		return   informacao;
	}

}
